how to identify duplicate values in python